﻿using System;

class Trapezoid
{
    static void Main()
    {
        int topSideWidth = int.Parse(Console.ReadLine());
        int bottomSideWidth = 2 * topSideWidth;
        int height = topSideWidth + 1;
        char symbol = '.';
        int symbolMarker = topSideWidth;

        for (int col = 1; col <= height; col++)
        {
            for (int row = 1; row <= bottomSideWidth; row++)
            {
                symbol = '.';
                if (col == 1)
                {
                    if (row > topSideWidth)
                    {
                        //top of the trapezoid
                        symbol = '*';
                    }
                }
                else if (col == height)
                {
                    //bottom side
                    symbol = '*';
                }
                else
                {
                    if (row == bottomSideWidth)
                    {
                        //right side
                        symbol = '*';
                    }
                    else if (row == symbolMarker)
                    {
                        //left side
                        symbol = '*';
                        symbolMarker--;
                    }
                }
                Console.Write(symbol);
            }
            Console.WriteLine();
        }
    }
}